import { App } from "vue"
const i18Plugin = {
  install: (app: App<Element>, options:any) => {
    app.config.globalProperties.$translate = (str: string) => {
      if(options[str]) {
        return options[str]
      } else {
        return str
      }
    }
  }
}
export default i18Plugin